import request from '@/utils/request';
//获取机构用户订单
export async function fetchSearchOrder(params) {
  return request('/order/admin/searchOrder', {
    params,
  });
}
//获取我的订单
export async function fetchListMyOrder(params) {
  return request('/order/admin/listMyOrder', {
    params,
  });
}
//获取机构补费订单
export async function fetchSearchToRechargeOrder(params) {
  return request('/order/admin/searchToRechargeOrder', {
    params,
  });
}

//获取我的补费用订单
export async function fetchSearchMyRechargeOrder(params) {
  return request('/order/admin/searchMyRechargeOrder', {
    params,
  });
}


//获取待审核的订单
export async function fetchSearchToCheckOrder(params) {
  return request('/order/admin/searchToCheckOrder', {
    params,
  });
}


//获取待审核的补费记录
export async function fetchSearchToCheckRecharge(params) {
  return request('/order/admin/searchToCheckRecharge', {
    params,
  });
}

//获取用户订单
export async function fetchCheckUserInfo(params) {
  return request('/user/admin/checkUserInfo', {
    params,
  });
}


//录入订单
export async function fakeEnterOrder(data) {
  return request('/order/admin/enterOrder', {
    method: 'post',
    data,
  });
}
//获取用户订单
export async function fetchOrderDetail(params) {
  return request('/order/admin/getOrderDetail', {
    params,
  });
}


//订单补费
export async function fakeRechargeOrder(data) {
  return request('/order/admin/rechargeOrder', {
    method: 'post',
    data,
  });
}


//导出用户订单
export async function fakeExportUserOrder(data) {
  return request('/order/admin/exportUserOrder', {
    method: 'post',
    data,
  });
}


//审核订单
export async function fakeCheckOrder(data) {
  return request('/order/admin/checkOrder', {
    method: 'post',
    data,
  });
}

//审核订单补费
export async function fakeCheckOrderRecharge(data) {
  return request('/order/admin/checkOrderRecharge', {
    method: 'post',
    data,
  });
}

